package com.yuanlai.quartz.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yuanlai.quartz.model.Student;
import com.yuanlai.quartz.utils.PageInfoUtil;



import javax.servlet.http.HttpServletRequest;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class PageTemplateController {
	    @Autowired
	    private HttpServletRequest request;
	    
		@RequestMapping("/")
		public String defaultIndex(){
			
			return "index";
		 }
	    
		@RequestMapping("/index.html")
		public String _index(Map<String,String> map){
			return "index";
		 }

		@RequestMapping("/main")
		public String index(Map<String,String> map){
			
		return "main";
		}
   
	    @RequestMapping("/*.html")
	    public String empty(Map<String,String> map){
	
	        map.put("name",request.getServletPath());
	        return "empty";
	    }
	    @RequestMapping("/task_index")
	    public String taskIndexPage() {
	    	
	    	return "task_index";
	    }
	    @RequestMapping("/task_create")
	    public String taskCreatePage() {
	    	
	    	return "task_create";
	    }
	    @RequestMapping("/task_modify")
	    public String taskModifyPage() {
	    	
	    	return "task_modify";
	    }

    
    
    
}
